package com.huike.web.controller.contract;

import com.huike.common.core.controller.BaseController;
import com.huike.common.core.domain.entity.SysUser;
import com.huike.common.core.page.TableDataInfo;
import com.huike.contract.domain.vo.TransferVo;
import com.huike.contract.service.TransferService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: fwh
 * @Date: 2023/07/13/21:56
 * @Description:
 */
@RestController
@RequestMapping("/transfer")
public class TransferController extends BaseController {

    @Resource
    private TransferService transferService;

    /**
     * 获取转派列表
     * @param sysUser
     * @return
     */
    @GetMapping("/list")
    public TableDataInfo list(SysUser sysUser){
        List<TransferVo> list=transferService.selectTransferList(sysUser);
        return getDataTablePage(list);
    }



}
